<h1>Listing algorithms</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @algorithms.each do |algorithm| %>
  <tr>
    <td><%= algorithm.name %></td>
    <td><%= algorithm.description %></td>
    <td><%= link_to 'Show', algorithm %></td>
    <td><%= link_to 'Edit', edit_algorithm_path(algorithm) %></td>
    <td><%= link_to 'Destroy', algorithm, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Algorithm', new_algorithm_path %>
